<?php
  $names = array (
  0 => 'Andrew',
  1 => 'John',
  2 => 'Peter',
  3 => 'Nastin',
  4 => 'Bill',
);
  var_export($names);
  $output =
  preg_grep(
  '/^[^a-j]/i',
   $names);
  print_r( $output );
